Skip to main content

Align

Description

Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes. When the parent is resized, an aligned control also resizes so that it continues to span the top, bottom, left, or right edge of the parent.

ValueDescription
alNoneThe control remains where it was placed. This is the default value.
alTopThe control moves to the top of its parent and resizes to fill the width of its parent. The height of the control is not affected.
alBottomThe control moves to the bottom of its parent and resizes to fill the width of its parent. The height of the control is not affected.
alLeftThe control moves to the left side of its parent and resizes to fill the height of its parent. The width of the control is not affected.
alRightThe control moves to the right side of its parent and resizes to fill the height of its parent. The width of the control is not affected.
alClientThe control resizes to fill the client area of its parent. If another control already occupies part of the client area, the control resizes to fit within the remaining client area.
alCustomThe control’s positioning is determined by calls to its parent's CustomAlignInsertBefore and CustomAlignPosition methods.

Syntax

property Align;